package collectionFramework.assignments;

import java.util.ArrayList;
import java.util.Scanner;

public class StudentArrayList {
	public static void main(String[] args) {
		ArrayList<String> al = new ArrayList<String>();
		al.add("Raj");
		al.add("Ravi");
		al.add("Venu");
		al.add("Balu");
		al.add("Seeta");
		al.add("Reeta");
		al.add("Geeta");
		al.add("Raghu");
		System.out.print("Enter name to search in array List: ");
		Scanner s = new Scanner(System.in);
		String name = s.next();
		if (al.contains(name))
			System.out.println("Found!");
		else
			System.out.println("Not found!");
	}
}
